package com.yjht.common.utils;

import com.yjht.common.constant.Constant;

import java.util.Map;

public class ParamsUtils {
    public static Map<String,Object> getNewSqlFilter(Map<String,Object> params,String table){
        if (params.get(Constant.SQL_FILTER) != null) {
            String aa = (String) params.get(Constant.SQL_FILTER);
            StringBuffer sb = new StringBuffer(aa);
            sb.replace(2, 2, table+".");
            params.put(Constant.SQL_FILTER, sb.toString());
        }
        return params;
    }
}
